To find this window
Analyze Profit & Loss window - Ledger view
In the Reports menu, select Analysis; then in the submenu, select Analyze Profit & Loss.
To find the Analyze Profit & Loss window - Ledger view